diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-08 09:12:25 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-08 09:12:25 +0200 |
| commit | 7d85a18867ca0fe2310218c63cfc696c0f916171 (patch) | |
| tree | 184510b861bcda9e105322b79395dd3af512f580 /src/routes/grocery/[id] | |
| parent | 4b2b964283075712de98743720ff3e31370ddc8e (diff) | |
Consolidate duplicated page CSS into app.css, share TestDb type
- Move .page-header/.back-link/.input-invalid/.save-status/.btn-done
(plus hover/variant rules) into app.css as shared route scaffolding;
delete per-page scoped copies
- Unify drifted values: page-header padding 1rem -> 1.25rem (routine
page), empty-state spacing 0.75/1.5rem -> 1/2rem (grocery detail),
save-status margin -0.25rem applied on both pages, back-link margin
1.5rem -> 1rem (grocery detail); routine page's large Fait button is
kept via a .btn-done-lg modifier
- Export TestDb from test-helper and use it in the five db/service
test files to shrink duplicated fixture scaffolding
Diffstat (limited to 'src/routes/grocery/[id]')
| -rw-r--r-- | src/routes/grocery/[id]/+page.svelte | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/routes/grocery/[id]/+page.svelte b/src/routes/grocery/[id]/+page.svelte index 531fbf7..4a96f32 100644 --- a/src/routes/grocery/[id]/+page.svelte +++ b/src/routes/grocery/[id]/+page.svelte @@ -214,33 +214,12 @@ margin-bottom: 0.5rem; } - .empty { - margin-top: 0.75rem; - padding: 1.5rem; - } - hr { border: none; border-top: 1.5px solid var(--border); margin: 1.5rem 0; } - .back-link { - display: inline-flex; - align-items: center; - gap: 0.375rem; - margin-top: 1.5rem; - color: var(--text-secondary); - text-decoration: none; - font-size: 0.875rem; - font-weight: 500; - transition: color 0.2s; - } - - .back-link:hover { - color: var(--accent); - } - .delete-item-btn { margin-top: 1.5rem; padding: 0.625rem 1.25rem; @@ -258,20 +237,4 @@ background: var(--danger-bg); transform: translateY(-1px); } - - .save-status { - font-size: 0.875rem; - color: var(--success); - font-weight: 500; - margin-top: -0.25rem; - visibility: hidden; - opacity: 0; - transition: opacity 0.2s ease; - min-height: 1.25rem; - } - - .save-status.visible { - visibility: visible; - opacity: 1; - } </style> |
